package com.autumn.xa.a.offerdemo;

import java.io.IOException;

/**
 * ClassName: ThisEscape
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2022/6/17 10:33 上午
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2022/6/17 10:33 上午   @Version 1.0        描述
 */
public class ThisEscape {

    // this 溢出
    private int num = 1;

    public ThisEscape() {
        new Thread(() -> {
            if (this.num == 0){
                System.out.println(this.num);
            }
        }).start();
    }


    public static void main(String[] args) throws IOException {

        new ThisEscape();

    }
}
